<?php

use Illuminate\Database\Seeder;
use App\Models\Collect;

class CollectsTableSeeder extends Seeder
{
    public function run()
    {
        $collects = factory(Collect::class)->times(50)->make()->each(function ($collect, $index) {
            if ($index == 0) {
                // $collect->field = 'value';
            }
        });

        Collect::insert($collects->toArray());
    }

}

